import { createRouter, createWebHistory } from 'vue-router'
import svg from "./pages/svg";
import design from "./pages/design";

const routes = [
    //
    {
      path: '/',
      redirect: '/g-svg'
    },
    {
        path: '/g-svg',
        name: 'svg',
        component: svg,
        meta: {
            title: 'svg'
        }
    },
    {
        path: '/g-design',
        name: 'design',
        component: design,
        meta: {
            title: 'design'
        }
    }
]

const router = createRouter({
    history: createWebHistory('/'),
    routes: routes
})

export default router

